<?php
/**
 * JLStringHelper - This helper is used to process string
 * 
 * @author HuyTBT
 * @date 2012-06-26
 * @version 1.0
 */
class FlagString
{
	public static function outString($countLike=null,$self=null)
	{
		if ($countLike != 0) {
			if (!$self) {
				return ' <a href="javascript:void(0)"> '.$countLike.' people </a> flag as inappropriate.';
			} else {
				$countLike	-= 1;
				if ($countLike>0) {
					return ' You and <a href="javascript:void(0)">'.$countLike.' people </a> flag as inappropriate.';					
				} else {
					return ' You flag as inappropriate';
				}
			}
		} else {
			return null;
		}
	}
}
